<?php
$nv = new NhanVien();
$nv->add(); 
include_once("../View/v_quanly.php");
/*if($_POST['action']=="Add") 
{
	$nv = new NhanVien();
	$nv->add();
}*/
 
 
 //if ($_SERVER['REQUEST_METHOD'] == 'POST')
	//{
		//echo 'hello';
		/*$msNhanVien = trim($_POST['cmbQuyenHan']); 
	 	$hoTenNV = trim($_POST['txtHoTenNV']); 
	 	$ngaySinh = trim($_POST['txtNgaySinh']); 
	 	$queQuan = trim($_POST['txtQueQuan']); 
	 	$cmnd = trim($_POST['txtCMND']); 
	 	$soDT = trim($_POST['txtSoDTNV']); 
	 	$tenDangNhap = trim($_POST['txtTenDangNhap']); 
	 	$matKhau = trim($_POST['txtMatKhau']); 
		$quyenHan = trim($_POST['cmbQuyenHan']); 
		$action = trim($_POST['action']);
		
		$nv = new NhanVien();
		$nv->setMsNhanVien($msNhanVien);
		$nv->setHoTen($hoTenNV);
		$nv->setNgaySinh($ngaySinh);
		$nv->setQueQuan($queQuan);
		$nv->setCMND($cmnd);
		$nv->setDienThoai($soDT);
		$nv->setMatKhau($matKhau);
		$nv->setIsAdmin(true);*/
		
		/*mysql_query("BEGIN TRAN");
				
					$i = 0;
					if ($nv->add() > 0)  $i = 1;
					
					if ($i > 0) echo "<script language=javascript> alert('Done!'); </script>";
					else	echo "<script language=javascript> alert('Error!'); </script>";
		*/
	//}
	
	
	
	

?>